//静态文件
import express from 'express'
//var express = require('express');
var app = express();

app.use('/public', express.static('public'));

app.get('/', function (req, res) {
    //res.send('Hello World');
    res.send('您应该打开：http://localhost:8081/public/vite.svg')
})

var server = app.listen(8081, function () {

    var host = server.address().address
    var port = server.address().port

    console.log("应用实例，访问地址为 http://%s:%s", host, port)

})